﻿#include "userinfo.h"

UserInfo::UserInfo()
{

}
UserInfo::UserInfo(QString number, QString password,QString role,
                                     QString sex, QString name, QString birthday,
                                    QString phone, QString email, QString headPic,
                                    QString certificate,QString certPath, QString realName)
{
    m_role = role;
    m_number = number;
    m_password = password;
    m_headPic = headPic;
     m_sex = sex;
     m_name = name;
     m_phone = phone;
     m_email = email;
     m_birthday = birthday;
     m_certPath = certPath;
     m_realName = realName;
     m_certificate = certificate;
}

const QString &UserInfo::getNumber() const
{
    return  m_number;
}
const QString &UserInfo::getPassword() const
{
    return  m_password;
}
const QString& UserInfo::getHeadPic() const
{
    return  m_headPic;
}

const QString &UserInfo::getSex() const
{
    return  m_sex;
}

const QString &UserInfo::getRole() const
{
    return  m_role;
}

const QString &UserInfo::getName() const
{
    return  m_name;
}

const QString &UserInfo::getRealName() const
{
    return  m_realName;
}

const QString &UserInfo::getPhone() const
{
    return  m_phone;
}

const QString &UserInfo::getEmail() const
{
    return  m_email;
}

const QString &UserInfo::getBirthday() const
{
    return  m_birthday;
}

const QString &UserInfo::getCertPath() const
{
    return  m_certPath;
}

const QString &UserInfo::getCertificate() const
{
    return  m_certificate;
}

void UserInfo::setNumber(const QString& number)
{
    m_number = number;
}

void UserInfo::setPassword(const QString& password)
{
    m_password = password;
}

void UserInfo::setHeadPic(const QString& path)
{
    m_headPic = path;
}

void UserInfo::setSex(const QString& sex)
{
    m_sex = sex;
}

void UserInfo::setRole(const QString& role)
{
    m_role = role;
}

void UserInfo::setName(const QString& name)
{
    m_name = name;
}

void UserInfo::setRealName(const QString& realName)
{
    m_realName = realName;
}

void UserInfo::setPhone(const QString& phone)
{
    m_phone = phone;
}

void UserInfo::setEmail(const QString& email)
{
    m_email = email;
}

void UserInfo::setBirthday(const QString& birthday)
{
    m_birthday = birthday;
}

void UserInfo::setCertPath(const QString& certPath)
{
    m_certPath = certPath;
}

void UserInfo::setCertificate(const QString& certificate)
{
    m_certificate = certificate;
}

